package com.liancheng.smarthome.bean;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import com.liancheng.smarthome.BR;

/**
 * 输入+标题框，对应的输入法实体类
 */
public class InputTitleBean extends BaseObservable {

    public String titleName;
    public String edtHint;
    public String edtText;

    @Bindable
    public String getEdtHint() {
        return edtHint;
    }

    public void setEdtHint(String edtHint) {
        this.edtHint = edtHint;
        notifyPropertyChanged(BR.edtHint);
    }

    @Bindable
    public String getEdtText() {
        return edtText;
    }

    public void setEdtText(String edtText) {
        this.edtText = edtText;
        notifyPropertyChanged(BR.edtText);
    }

//    public void setFirstName(String firstName) {
//        this.firstName = firstName;
//        notifyPropertyChanged(BR.firstName);
//    }
//    public void setLastName(String lastName) {
//        this.lastName = lastName;
//        notifyPropertyChanged(BR.lastName);
//    }
    public InputTitleBean(String titleName, String edtHint, String edtText) {
        this.titleName = titleName;
        this.edtHint = edtHint;
        this.edtText = edtText;
    }

    public InputTitleBean() {
    }

    @Override
    public String toString() {
        return "InputTitleBean{" +
                "titleName='" + titleName + '\'' +
                ", edtHint='" + edtHint + '\'' +
                ", edtText='" + edtText + '\'' +
                '}';
    }
}
